package com.qzsoft.zhjd.asphalt.modules.asphaltdataweight.mapper;

import java.util.Map;

import com.qzsoft.zhjd.asphalt.modules.asphaltdataweight.dto.AsphaltDataWeightDto;
import com.qzsoft.zhjd.asphalt.modules.asphaltdataweight.dto.ProduceWeightDto;
import com.qzsoft.zhjd.asphalt.modules.asphaltdataweight.entity.AsphaltDataWeightEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * @ClassName AsphaltDataWeightMapper
 * @Description 重量数据库接口
 * @author linhuawei
 * @since 2021-12-04
 */
@Mapper
public interface AsphaltDataWeightMapper extends BaseMapper<AsphaltDataWeightEntity> {

    /**
     * @Title queryDto
     * @Description 查询重量分页数据
     * @param page   分页条件
     * @param params 查询调价
     * @return 重量分页数据
     */
    public IPage<AsphaltDataWeightDto> queryDto(IPage<AsphaltDataWeightDto> page,
                                                @Param("params") Map<String, Object> params);

    /**
     * @Title produceWeight
     * @Description 生产重量
     * @param page   分页条件
     * @param params 查询条件
     * @return 生产重量
     */
    public IPage<ProduceWeightDto> produceWeight(IPage<ProduceWeightDto> page,
                                                 @Param("params") Map<String, Object> params);

//    /**
//     * @Title produceTotalWeight
//     * @Description 获取累计重量
//     * @param params 查询条件
//     * @return 累计重量
//     */
//    public BigDecimal produceTotalWeight(@Param("params") Map<String, Object> params);

}
